package cn.enilu.flash.dao.shop;


import cn.enilu.flash.bean.entity.shop.Category;
import cn.enilu.flash.dao.BaseRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;


public interface CategoryRepository extends BaseRepository<Category,Long>{
//    @Query(value="SELECT a FROM Category a WHERE where fistId = ?1  limit ?2,?3")
//    List<Category> queryfist(Long fistId,Integer index,Integer size);

    List<Category> findByIsHot(Integer isHost);

    Integer countByFistId(Long id);

    List<Category> findByFistId(Long id);
}

